networking.interfaces.<name>.virtualType
The type of interface to create. The default is TUN for an interface name starting with "tun", otherwise TAP.
- Type
one of "tun", "tap"- Default
if hasPrefix "tun" name then "tun" else "tap"- Declared
- <nixpkgs/nixos/modules/tasks/network-interfaces.nix>